﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Shape
    {
        private string _color;
        private double _mianji;

        public string Color { get => _color; set => _color = value; }
        public double Mianji { get => _mianji; set => _mianji = value; }

        public virtual void GetArea()
        {
            Console.WriteLine("此图形的面积为"+this.Mianji);
        }
    }
}
